<?php
/* Smarty version 3.1.33, created on 2019-12-07 09:05:12
  from 'D:\xampp\htdocs\ps_project\application\views\templates\shop\order.tpl' */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '3.1.33',
  'unifunc' => 'content_5deb5d388b8c80_00793159',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    'e2ed390c1a1b50950c428c944ce9e71cce2588dd' => 
    array (
      0 => 'D:\\xampp\\htdocs\\ps_project\\application\\views\\templates\\shop\\order.tpl',
      1 => 1575705911,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
),false)) {
function content_5deb5d388b8c80_00793159 (Smarty_Internal_Template $_smarty_tpl) {
?><!DOCTYPE html>
<html lang="zh-CN" xmlns="http://www.w3.org/1999/html">

<head>
	<meta charset="UTF-8">
	<title>订餐</title>
</head>

<body>
<ul>
	<?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['dishes']->value, 'dish');
if ($_from !== null) {
foreach ($_from as $_smarty_tpl->tpl_vars['dish']->value) {
?>
		<li>name: <?php echo $_smarty_tpl->tpl_vars['dish']->value->dname;?>
</li>
		<li>price: <?php echo $_smarty_tpl->tpl_vars['dish']->value->price;?>
</li>
		<li>discount: <?php echo $_smarty_tpl->tpl_vars['dish']->value->discount;?>
</li>
		<form action="<?php echo $_smarty_tpl->tpl_vars['base_url']->value['base_url'];?>
diner/order" method="post" target="nm_iframe">
			<input type="hidden" name="id" value="<?php echo $_smarty_tpl->tpl_vars['dish']->value->id;?>
" >
			<button type="submit" name="act" value="add">
				<span>+</span>
			</button>
			<button type="submit" name="act" value="min">
				<span>-</span>
			</button>
		</form>

		<iframe id="id_iframe" name="nm_iframe" style="display:none;"></iframe>
		<br>
	<?php
}
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
</ul>

<a href="<?php echo $_smarty_tpl->tpl_vars['base_url']->value['base_url'];?>
diner/order">查看订单</a>
</body>

</html>
<?php }
}
